﻿<%@ Page PathInChannel="category/recommend/{ID}{Page}{Ext}" Object="Category" %>
<%@ OutputCache Duration="7200" VaryByParam="none" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Category" Object="Category" PageID="Request.QueryString['ID']" ForMeta="true" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=MetaKeywords%>" />
<meta name="description" content="<%=MetaDescription%>" />
<title><%=Category[Name]%>（站长推荐） - <%=Channel[Name]%> - <%=Site[Name]%></title>
<ali:Comment><link rel="stylesheet" type="text/css" href="S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" type="text/css" href="<%=CssPath%>common.css" />
<script language="c#" runat="server">
protected string CalcSize(object size)
{
	float s = Convert.ToSingle(size);
	if (s > 1024)
		return (s / 1024).ToString(".00") + " MB";
	else
		return size + " KB";
}
</script>
<script type="text/javascript">
var _lang = "<%=PageLang%>";
</script>
</head>
<body>
<!-- TemplateBeginEditable name="菜单" -->
<div class="Wrap">
	<ali:Menu Condition="IsDisplay=true and CategoryID IS NULL and ParentID IS NULL">
		<div class="Menu">
			<ali:Record>
				<ali:Select>
					<ali:Yes>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><strong><%=Name%></strong></a>
					</ali:Yes>
					<ali:No>
						<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
					</ali:No>
				</ali:Select>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</ali:Menu>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：下载 - Banner" -->
<div class="Wrap">
	<div class="Ad1">
		<ali:Ad Guid="{DE599B30-A477-4d86-AB90-B0C329F75831}">
			<a href="http://www.alibaza.com" target="_blank"><img src="<%=ImagePath%>ad/ad1.jpg" alt="Ad" style="width:980px;height:100px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="下载类别" -->
<ali:List Object="Category" Condition="IsDisplay=true and ParentID IS NULL">
	<div class="Wrap">
		<div class="SubMenu">
			<ali:Record>
				<a href="<%=BuildUrl()%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="搜索" -->
<div class="Wrap">
	<form id="Search" action="<%=BuildUrl("search")%>" target="_blank">
		关键词：
		<input type="text" name="q" size="20" class="Text <%=PageLang%>Font" />
		<input type="submit" value="搜 索" class="Submit" />
		<span>推荐：
			<ali:List Object="Download" Page="1" PageSize="3" Condition="IsDeleted=false and IsChecked=true and Hold > 0" Sort="UpdateTime DESC">
				<ali:Record>
					<a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"><%=Name%></a>
				</ali:Record>
			</ali:List>
		</span>
	</form>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="路径" -->
<div class="Wrap">
	<div class="Path">当前位置：
		<ali:Path IncludeCurrentChannel="True">
			<ali:Record>
				<a href="<%=URL%>" title="<%=Name%>"><%=Name%></a> &gt;&gt; 
			</ali:Record>
		</ali:Path>
		<a href="<%=BuildUrl("list_recommend")%>" title="下载列表">下载列表</a> &gt;&gt; <%=Category[Name]%>（站长推荐）
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="广告位：下载 - 路径下方" -->
<div class="Wrap">
	<div class="Ad4">
		<ali:Ad Guid="{9C24E2D0-1C90-41ca-8D37-F941E499F633}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad9.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Block3">
		<div class="Block1">
			<!-- TemplateBeginEditable name="广告位：下载 - 侧栏顶部" -->
			<div class="Ad3">
				<ali:Ad Guid="{B681F2AF-3972-42c9-89CA-7409D1BC2A0E}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad4.gif" alt="Ad" style="width:220px;height:80px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="分 类" -->
			<h2>类 别</h2>
			<ali:List Object="Category" Condition="IsDisplay=true">
				<ul class="List4">
					<ali:Record>
						<%If String.Equals(PageID, Request.QueryString["ID"])%>
							<li class="Bg1"><a><strong><%=Name%></strong></a></li>
						<%Else%>
							<li class="Bg1"><a href="<%=BuildUrl("category_recommend")%>" title="<%=Name%>"><%=Name%></a></li>
						<%EndIf%>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="平 台" -->
			<h2>平 台</h2>
			<ali:List Object="Platform">
				<ul class="List4">
					<ali:Record>
						<li class="Bg1"><a href="<%=BuildUrl("platform_recommend")%>" title="<%=Name%>"><%=Name%></a></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="授 权" -->
			<h2>授 权</h2>
			<ali:List Object="License">
				<ul class="List4">
					<ali:Record>
						<li class="Bg1"><a href="<%=BuildUrl("license_recommend")%>" title="<%=Name%>"><%=Name%></a></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="类 型" -->
			<h2>类 型</h2>
			<ali:List Object="Type">
				<ul class="List4">
					<ali:Record>
						<li class="Bg1"><a href="<%=BuildUrl("type_recommend")%>" title="<%=Name%>"><%=Name%></a></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="语 言" -->
			<h2>语 言</h2>
			<ali:List Object="Language">
				<ul class="List4">
					<ali:Record>
						<li class="Bg1"><a href="<%=BuildUrl("language_recommend")%>" title="<%=Name%>"><%=Name%></a></li>
					</ali:Record>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->
			
			<!-- TemplateBeginEditable name="标 签" -->
			<h2>标 签</h2>
			<ali:List Object="Download.Tag" Operation="FilterList(1, 20, null)">
				<ul class="List4">
					<ali:Record>
						<li class="Bg1"><a href="<%=BuildUrl("tag_recommend")%>" title="<%=TagName%>"><%=TagName%></a></li>
					</ali:Record>
					<li class="Bg1"><a href="<%=BuildUrl("tag_list")%>" title="更多标签">更多标签...</a></li>
				</ul>
			</ali:List>
			<div class="Bottom1"></div>
			<!-- TemplateEndEditable -->

			<!-- TemplateBeginEditable name="广告位：下载 - 侧栏底部" -->
			<div class="Ad3">
				<ali:Ad Guid="{62A63501-DD5A-4b5b-BF42-0A14F39190A3}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad90.gif" alt="Ad" style="width:220px;height:148px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->
		</div>
		<div class="Block4">
			<div class="Top1"></div>
			<div class="Pagination">
				<a href="<%=BuildUrl("category", Category)%>">最新发布</a>
				<a href="<%=BuildUrl("category_hit", Category)%>">最多浏览</a>
				<a href="<%=BuildUrl("category_down", Category)%>">最多下载</a>
				<span class="Selected">站长推荐</span>
				<a href="<%=BuildUrl("category_up", Category)%>">用户推荐</a>
			</div>
			
			<!-- TemplateBeginEditable name="列表" -->
			<ali:List ID="List" Object="Download" Page="PageNumber" PageSize="10" Condition="IsDeleted=false and IsChecked=true and IsRecommended=true and IncludeSubCategory=Category[ID]" Sort="UpdateTime DESC">
				<ali:Record>
					<h1>
						<span class="Left"><a href="<%=BuildUrl()%>" target="_blank" title="<%=Name%>"<%=Style%>><%=Name%></a></span>
						<span class="Right">下载：<%=DownCount%> 人气：<%=HitCount%> 顶：<%=Up%> 踩：<%=Down%></span>
					</h1>
					<div class="Block5">
						<div><span>运行环境：</span>
							<ali:List Source="Manager.SplitToTable(PlatformNames, PlatformPageTemplates, PlatformPageIDs, PlatformPageExtensions)">
								<ali:Record>
								    <a href="<%=BuildUrl("platform", "PageTemplate=" + [1] + "&ID=" + [2] + "&Ext=" + [3])%>" title="<%=[0]%>"><%=[0]%></a>
								    <ali:Separator>/</ali:Separator>
								</ali:Record>
							</ali:List>
						</div>
						<div><span>文件大小：</span><%=CalcSize(Size)%></div>
						<div><span>授权方式：</span>
							<%If !Guid.Equals(LicenseID, Guid.Empty)%>
								<a href="<%=BuildUrl("license", "PageTemplate=" + LicensePageTemplate + "&ID=" + LicensePageID + "&Ext=" + LicensePageExtension)%>" title="<%=LicenseName%>"><%=LicenseName%></a>
							<%EndIf%>
						</div>
						<div><span>更新时间：</span><%=UpdateTime%></div>
						<%=Introduction%>
					</div>
				</ali:Record>
			</ali:List>
			<!-- TemplateEndEditable -->
		
			<!-- TemplateBeginEditable name="分页" -->
			<ali:Pagination Page="PageNumber" PageSize="10" RecordCount="List[RecordCount]">
				<div class="Pagination">
					<ali:FirstPage>
						<ali:Yes>
							<span class="Disabled">&lt;&lt;</span>
							<span class="Disabled">&lt;</span>
						</ali:Yes>
						<ali:No>
							<a href="<%=FirstPage%>" title="首页">&lt;&lt;</a>
							<a href="<%=PreviousPage%>" title="上一页" id="PrevPage">&lt;</a>
						</ali:No>
					</ali:FirstPage>
					<ali:CurrentPage Range="5">
						<ali:Yes>
							<span class="Selected"><%=Index%></span>						
						</ali:Yes>
						<ali:No>
							<a href="<%=URL%>"><%=Index%></a>
						</ali:No>
					</ali:CurrentPage>
					<ali:LastPage>
						<ali:Yes>
							<span class="Disabled">&gt;</span>
							<span class="Disabled">&gt;&gt;</span>
						</ali:Yes>
						<ali:No>
							<a href="<%=NextPage%>" title="下一页" id="NextPage">&gt;</a>
							<a href="<%=LastPage%>" title="尾页">&gt;&gt;</a>
						</ali:No>
					</ali:LastPage>
				</div>
			</ali:Pagination>
			<!-- TemplateEndEditable -->

			<!-- TemplateBeginEditable name="广告位：下载 - 分页下方" -->
			<div class="Ad15">
				<ali:Ad Guid="{B57CF44E-80AD-4b35-B4AD-A7A528702181}">
					<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad7.gif" alt="Ad" style="width:468px;height:60px" /></a>
				</ali:Ad>
			</div>
			<!-- TemplateEndEditable -->

			<div class="Bottom1"></div>
		</div>
	</div>
</div>	

<!-- TemplateBeginEditable name="广告位：下载 - 网页底部" -->
<div class="Wrap">
	<div class="Ad9">
		<ali:Ad Guid="{07CC2E92-DEA7-4b49-9B62-E5A841DD36BF}">
			<a href="http://www.alicms.cn"><img src="<%=ImagePath%>ad/ad9.jpg" alt="Ad" style="width:980px;height:70px" /></a>
		</ali:Ad>
	</div>
</div>
<!-- TemplateEndEditable -->

<!-- TemplateBeginEditable name="友情连接" -->
<ali:List Mark="System" Object="Link" Condition="IsChecked=true">
	<div class="Wrap">
		<div class="Link">
			<h1>友情链接</h1>
			<ul>
				<ali:Record>
					<li>
						<%If Convert.IsDBNull(Logo)%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><%=Name%></a>
						<%Else%>
							<a href="<%=URL%>" target="_blank" title="<%=Name%>"><img src="<%=Logo%>" alt="<%=Name%>" /></a>
						<%EndIf%>
					</li>
				</ali:Record>
			</ul>
		</div>
	</div>
</ali:List>
<!-- TemplateEndEditable -->

<div class="Wrap">
	<div class="Footer">
		<!-- TemplateBeginEditable name="脚注菜单" -->
		<ali:Menu Condition="IsDisplay=true and CategoryID={BAC035A8-F6BB-4772-8D51-A7F4F3AB7AD3}">
			<ali:Record>
				<a href="<%=URL%>" target="<%=Target%>" title="<%=Name%>"<%=Style%>><%=Name%></a>
				<ali:Separator>|</ali:Separator>
			</ali:Record>
			<hr size="1" />
		</ali:Menu>
		<!-- TemplateEndEditable -->
	
		<%=Footer%>
	</div>
</div>

<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<%=StatisticsCode%>
</body>
</html>
